From: Bastien Nocera Date: Mon, 17 Oct 2016 11:50:08 +0000 (+0200) Subject: build: Fix git submodule fetching with builddir != srcdir X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~676 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=56d0d7253bfab7476720a231cf6f2554ef92e256;p=gnome-shell.git build: Fix git submodule fetching with builddir != srcdir We were running the git submodule update in builddir, instead of srcdir, which might have lead to submodules not updating, and submodule tags being reverted to older versions in some contributions. https://bugzilla.gnome.org/show_bug.cgi?id=773085 --- diff --git a/autogen.sh b/autogen.sh index 492e5d062..3ab889e4e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,6 +11,8 @@ test -z "$srcdir" && srcdir=. exit 1 } +pushd $srcdir + # Fetch submodules if needed if test ! -f src/gvc/Makefile.am || test ! -f data/theme/gnome-shell-sass/COPYING; then @@ -19,6 +21,8 @@ then fi git submodule update +popd + which gnome-autogen.sh || { echo "You need to install gnome-common from GNOME Git (or from" echo "your OS vendor's package manager)."